<template>
  <div class="wrapper">
    <router-link class="name" v-for="item of tabs" :key="item.title" :to="item.to"  active-class="active" @click="handleClick">
      <p class="iconfont" v-html="item.icon" ></p>
      <p>{{item.title}}</p>
    </router-link>
    <div class="cicle">下载APP</div>

  </div>
</template>

<script>
export default {
  components: {
  },
  props: {},
  data() {
    return {
      isActivated: false,
      tabs: [
        {
          title: "首页",
          to: "/home/index",
          icon: "&#xe62f;"
        },
        {
          title: "订单",
          to: "/home/order",
          icon: "&#xe612;"
        },
        {
          title: "我的",
          to: "/home/my",
          icon: "&#xe62e;"
        }
      ]
    };
  },
  watch: {},
  computed: {},
  methods: {
    handleClick: function() {
      this.isActivated = !this.isActivated;
    }
  },
  created() {},
  mounted() {}
};
</script>
<style lang="scss" scoped>
.wrapper {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background: #fff;
  height: 1rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  p {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    width: 0.8rem;
    padding-bottom: 0.12rem;
  }
  .b {
    width: 0.8rem;
    height: 0.3rem;
  }
  .cicle {
    width: 1.5rem;
    height: 0.5rem;
    border-radius: 0.3rem;
    border: 1px solid #18c0c8;
    text-align: center;
    line-height: 0.5rem;
    color: #18c0c8;
  }
}
.active {
  color:#18c0c8;
}
a {
  color: black;
}
</style>